package com.battle.pojo.param.userCooperation;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.battle.pojo.converter.StringListConverter;
import com.battle.pojo.enums.UserCooperationStatusEnum;
import jakarta.persistence.Column;
import jakarta.persistence.Convert;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 【描 述】：编辑用户协作
 * 【环 境】：J2SE 17
 * 【详 细】：
 */
@Data
public class EditUserCooperationParam {

    private Long id;


    /**
     * 协作内容
     */
    @Column(length = 255)
    private String result;

    /**
     * 研讨成果照片
     */
    @Column(columnDefinition="varchar(500)")
    @Convert(converter = StringListConverter.class)
    @TableField(value = "result_picture",typeHandler = JacksonTypeHandler.class)
    private List<String> resultPicture;

}